package ihis.model;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

/**
 * 검색용 Class
 * 
 * @author yoni230
 * 
 */
public class TaskFilter extends GeneralFilter implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 6612415191268632550L;
	private String taskId;
	private String ownerFirstName;
	private String ownerLastName;
	private int status = -1;
	private Date fromDueDateRange;
	private Date toDueDateRange;
	private int taskType = IHISConstants.TASK_LIST_NONE;
	private int riskType = -1;
	
	public TaskFilter(){
	}
	
	public TaskFilter(GeneralFilter filter){
		this.startDate = filter.getStartDate();
		this.endDate = filter.getEndDate();
//		this.fromDueDateRange = filter.getStartDate();
//		this.toDueDateRange = filter.getEndDate();
		this.periodType = filter.getPeriodType();
		this.ownerType = filter.getOwnerType();
		this.projectId = filter.getProjectId();
		this.setUserId(filter.getUserId());
		this.teamId = filter.getTeamId();
		this.sort = filter.getSort();
		this.sortAscending = filter.getSortAscending();
		this.ownerId = filter.getOwnerId();
		this.reportDate = filter.getReportDate();
	}
	
	public String getTaskId() {
		return taskId;
	}

	public void setTaskId(String id) {
		this.taskId = id;
	}

	public String getOwnerFirstName() {
		return ownerFirstName;
	}

	public void setOwnerFirstName(String ownerFirstName) {
		this.ownerFirstName = ownerFirstName;
	}

	public String getOwnerLastName() {
		return ownerLastName;
	}

	public void setOwnerLastName(String ownerLastName) {
		this.ownerLastName = ownerLastName;
	}

	public Date getFromDueDateRange() {
		return fromDueDateRange;
	}

	public void setFromDueDateRange(Date fromDueDateRange) {
		this.fromDueDateRange = fromDueDateRange;
	}

	public Date getToDueDateRange() {
		return toDueDateRange;
	}

	public void setToDueDateRange(Date toDueDateRange) {
		this.toDueDateRange = toDueDateRange;
	}

	/**
	 * @return the status
	 */
	public int getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(int status) {
		this.status = status;
	}

	public int getTaskType() {
		return taskType;
	}

	public void setTaskType(int taskTypeRisk) {
		this.taskType = taskTypeRisk;
	}

	/**
	 * @return the riskType
	 */
	public int getRiskType() {
		return riskType;
	}

	/**
	 * @param riskType the riskType to set
	 */
	public void setRiskType(int riskType) {
		this.riskType = riskType;
	}
	

}
